﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebNext.Domain.Entities
{
	public class EntryImageElement : EntryElement
	{
		public const int MaxTitleLength = 1000;
		public const int MaxUriLength = 1000;

		public string Title
		{
			get;
			set;
		}

		public string ImageUri
		{
			get;
			set;
		}

		public EntryImageElement()
		{
			this.Type = EntryElementType.Image;
		}

		public override bool ContainsText(string text)
		{
			return this.Title != null && this.Title.IndexOf(text, StringComparison.InvariantCultureIgnoreCase) >= 0;
		}
	}
}
